<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: CTcpServer类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="#pro-static-methods">静态 Protected 成员函数</a> &#124;
<a href="#pri-methods">Private 成员函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="class_c_tcp_server-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">CTcpServer类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="_tcp_server_8h_source.html">TcpServer.h</a>&gt;</code></p>
<div class="dynheader">
类 CTcpServer 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_c_tcp_server.png" usemap="#CTcpServer_map" alt=""/>
  <map id="CTcpServer_map" name="CTcpServer_map">
<area href="class_c_tcp_base.html" alt="CTcpBase" shape="rect" coords="0,56,96,80"/>
<area href="class_c_basic_service.html" title="服务类 基类" alt="CBasicService" shape="rect" coords="0,0,96,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ac9556021226f32f5448c1d366855803e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_tcp_server.html#ac9556021226f32f5448c1d366855803e">CTcpServer</a> (bool isWriteLog)</td></tr>
<tr class="separator:ac9556021226f32f5448c1d366855803e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1deac95dca41945acf249aeffa77e8c"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_tcp_server.html#ae1deac95dca41945acf249aeffa77e8c">~CTcpServer</a> ()</td></tr>
<tr class="separator:ae1deac95dca41945acf249aeffa77e8c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a91a5d49009e5996ab2193e53339f4c61"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_c_sock_error.html">CSockError</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_tcp_server.html#a91a5d49009e5996ab2193e53339f4c61">Init</a> (<a class="el" href="class_c_socket.html">CSocket</a> &amp;sock, bool isServer=false)</td></tr>
<tr class="memdesc:a91a5d49009e5996ab2193e53339f4c61"><td class="mdescLeft">&#160;</td><td class="mdescRight">将sock与tcp绑定，一个socket只能绑定一个tcp服务类  <a href="class_c_tcp_server.html#a91a5d49009e5996ab2193e53339f4c61">更多...</a><br /></td></tr>
<tr class="separator:a91a5d49009e5996ab2193e53339f4c61"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a215a3edd8190f5ed24b788a547958d87"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_tcp_server.html#a215a3edd8190f5ed24b788a547958d87">AsyncAccept</a> (<a class="el" href="class_c_socket.html">CSocket</a> &amp;svrSock, <a class="el" href="class_c_socket.html">CSocket</a> &amp;cliSock, const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;func, void *invoker=<a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a>)</td></tr>
<tr class="memdesc:a215a3edd8190f5ed24b788a547958d87"><td class="mdescLeft">&#160;</td><td class="mdescRight">投递一个接收连接请求  <a href="class_c_tcp_server.html#a215a3edd8190f5ed24b788a547958d87">更多...</a><br /></td></tr>
<tr class="separator:a215a3edd8190f5ed24b788a547958d87"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0783f660e11a3da11d15461f5917a125"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_tcp_server.html#a0783f660e11a3da11d15461f5917a125">AsyncRead</a> (<a class="el" href="class_c_socket.html">CSocket</a> &amp;sock, const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;buff, const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;func, void *invoker=<a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a>)</td></tr>
<tr class="memdesc:a0783f660e11a3da11d15461f5917a125"><td class="mdescLeft">&#160;</td><td class="mdescRight">投递一个接收请求  <a href="class_c_tcp_server.html#a0783f660e11a3da11d15461f5917a125">更多...</a><br /></td></tr>
<tr class="separator:a0783f660e11a3da11d15461f5917a125"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a253d11319caeab1b90d4b2514671d963"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_tcp_server.html#a253d11319caeab1b90d4b2514671d963">AsyncSend</a> (<a class="el" href="class_c_socket.html">CSocket</a> &amp;sock, const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;buff, const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;func, void *invoker=<a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a>)</td></tr>
<tr class="memdesc:a253d11319caeab1b90d4b2514671d963"><td class="mdescLeft">&#160;</td><td class="mdescRight">投递一个写请求  <a href="class_c_tcp_server.html#a253d11319caeab1b90d4b2514671d963">更多...</a><br /></td></tr>
<tr class="separator:a253d11319caeab1b90d4b2514671d963"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7aec7b948d696161ec212911cf9d09a8"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_tcp_server.html#a7aec7b948d696161ec212911cf9d09a8">Post</a> (const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;func, void *invoker=<a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a>)</td></tr>
<tr class="memdesc:a7aec7b948d696161ec212911cf9d09a8"><td class="mdescLeft">&#160;</td><td class="mdescRight">投递一个中断请求  <a href="class_c_tcp_server.html#a7aec7b948d696161ec212911cf9d09a8">更多...</a><br /></td></tr>
<tr class="separator:a7aec7b948d696161ec212911cf9d09a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af863728c772ad57a28eda8b73e5a7313"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_tcp_server.html#af863728c772ad57a28eda8b73e5a7313">Run</a> ()</td></tr>
<tr class="memdesc:af863728c772ad57a28eda8b73e5a7313"><td class="mdescLeft">&#160;</td><td class="mdescRight">运行服务  <a href="class_c_tcp_server.html#af863728c772ad57a28eda8b73e5a7313">更多...</a><br /></td></tr>
<tr class="separator:af863728c772ad57a28eda8b73e5a7313"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af28974b451b2af615c6ba3882b2b35c7"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_tcp_server.html#af28974b451b2af615c6ba3882b2b35c7">Run_One</a> ()</td></tr>
<tr class="memdesc:af28974b451b2af615c6ba3882b2b35c7"><td class="mdescLeft">&#160;</td><td class="mdescRight">运行一次服务  <a href="class_c_tcp_server.html#af28974b451b2af615c6ba3882b2b35c7">更多...</a><br /></td></tr>
<tr class="separator:af28974b451b2af615c6ba3882b2b35c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae943fc8a2eb1bc116a4bfa714ce88e53"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_tcp_server.html#ae943fc8a2eb1bc116a4bfa714ce88e53">NotifyStop</a> ()</td></tr>
<tr class="memdesc:ae943fc8a2eb1bc116a4bfa714ce88e53"><td class="mdescLeft">&#160;</td><td class="mdescRight">通知服务停止  <a href="class_c_tcp_server.html#ae943fc8a2eb1bc116a4bfa714ce88e53">更多...</a><br /></td></tr>
<tr class="separator:ae943fc8a2eb1bc116a4bfa714ce88e53"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a34e5408e88e0161b6a08807266302ce9"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_tcp_server.html#a34e5408e88e0161b6a08807266302ce9">IsStop</a> () const</td></tr>
<tr class="memdesc:a34e5408e88e0161b6a08807266302ce9"><td class="mdescLeft">&#160;</td><td class="mdescRight">服务是否停止  <a href="class_c_tcp_server.html#a34e5408e88e0161b6a08807266302ce9">更多...</a><br /></td></tr>
<tr class="separator:a34e5408e88e0161b6a08807266302ce9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e63118cf3e1b653812c6a0b26db979a"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_tcp_server.html#a5e63118cf3e1b653812c6a0b26db979a">WaitServerStop</a> ()</td></tr>
<tr class="memdesc:a5e63118cf3e1b653812c6a0b26db979a"><td class="mdescLeft">&#160;</td><td class="mdescRight">通知服务停止并等待  <a href="class_c_tcp_server.html#a5e63118cf3e1b653812c6a0b26db979a">更多...</a><br /></td></tr>
<tr class="separator:a5e63118cf3e1b653812c6a0b26db979a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a43511d2bc36455ebe70267794d8f05a1"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_c_io_port_service.html">CIoPortService</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_tcp_server.html#a43511d2bc36455ebe70267794d8f05a1">GetIoPortService</a> ()</td></tr>
<tr class="memdesc:a43511d2bc36455ebe70267794d8f05a1"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取底层服务类  <a href="class_c_tcp_server.html#a43511d2bc36455ebe70267794d8f05a1">更多...</a><br /></td></tr>
<tr class="separator:a43511d2bc36455ebe70267794d8f05a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_c_tcp_base"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_c_tcp_base')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="class_c_tcp_base.html">CTcpBase</a></td></tr>
<tr class="memitem:a39878a259d69fd79be4edb2402216002 inherit pub_methods_class_c_tcp_base"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_tcp_base.html#a39878a259d69fd79be4edb2402216002">CTcpBase</a> (bool isWriteLog)</td></tr>
<tr class="separator:a39878a259d69fd79be4edb2402216002 inherit pub_methods_class_c_tcp_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adb35bee1cbd905225001615e622cc4a3 inherit pub_methods_class_c_tcp_base"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_tcp_base.html#adb35bee1cbd905225001615e622cc4a3">~CTcpBase</a> ()</td></tr>
<tr class="separator:adb35bee1cbd905225001615e622cc4a3 inherit pub_methods_class_c_tcp_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_c_basic_service"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_c_basic_service')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="class_c_basic_service.html">CBasicService</a></td></tr>
<tr class="memitem:a73a67d340b0d83df8c02834ec89edc2b inherit pub_methods_class_c_basic_service"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_basic_service.html#a73a67d340b0d83df8c02834ec89edc2b">CBasicService</a> ()</td></tr>
<tr class="memdesc:a73a67d340b0d83df8c02834ec89edc2b inherit pub_methods_class_c_basic_service"><td class="mdescLeft">&#160;</td><td class="mdescRight">构造一个服务基类对象  <a href="class_c_basic_service.html#a73a67d340b0d83df8c02834ec89edc2b">更多...</a><br /></td></tr>
<tr class="separator:a73a67d340b0d83df8c02834ec89edc2b inherit pub_methods_class_c_basic_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a772031ad3c140a387b8b1e4f7bc4bed5 inherit pub_methods_class_c_basic_service"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_basic_service.html#a772031ad3c140a387b8b1e4f7bc4bed5">~CBasicService</a> ()</td></tr>
<tr class="memdesc:a772031ad3c140a387b8b1e4f7bc4bed5 inherit pub_methods_class_c_basic_service"><td class="mdescLeft">&#160;</td><td class="mdescRight">销毁一个服务基类对象  <a href="class_c_basic_service.html#a772031ad3c140a387b8b1e4f7bc4bed5">更多...</a><br /></td></tr>
<tr class="separator:a772031ad3c140a387b8b1e4f7bc4bed5 inherit pub_methods_class_c_basic_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:a3d9e530435ed02902e0ffc49ee911d23"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_tcp_server.html#a3d9e530435ed02902e0ffc49ee911d23">DelTimer</a> (<a class="el" href="class_c_timer_base.html">CTimerBase</a> &amp;timer)</td></tr>
<tr class="separator:a3d9e530435ed02902e0ffc49ee911d23"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1e9571f43f1e91576211b2dd0e4737c9"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_tcp_server.html#a1e9571f43f1e91576211b2dd0e4737c9">UpdateTimer</a> (<a class="el" href="class_c_timer_base.html">CTimerBase</a> &amp;timer)</td></tr>
<tr class="separator:a1e9571f43f1e91576211b2dd0e4737c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6656ac1f6545de42e7d26d86c02f117f"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_tcp_server.html#a6656ac1f6545de42e7d26d86c02f117f">SetTimer</a> (<a class="el" href="class_c_timer_base.html">CTimerBase</a> &amp;timer)</td></tr>
<tr class="separator:a6656ac1f6545de42e7d26d86c02f117f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-static-methods"></a>
静态 Protected 成员函数</h2></td></tr>
<tr class="memitem:aabed27cc347f3b9278aed6b89b1b1583"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_tcp_server.html#aabed27cc347f3b9278aed6b89b1b1583">IoCompleteFunc</a> (<a class="el" href="struct_o_v_e_r_l_a_p_p_e_d___e_x.html">OVERLAPPED_EX</a> *oved)</td></tr>
<tr class="separator:aabed27cc347f3b9278aed6b89b1b1583"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private 成员函数</h2></td></tr>
<tr class="memitem:ac7a0eb0e419627672d91d032e8bbc7a3"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_tcp_server.html#ac7a0eb0e419627672d91d032e8bbc7a3">delete_class_copy_operator</a> (<a class="el" href="class_c_tcp_server.html">CTcpServer</a>)</td></tr>
<tr class="separator:ac7a0eb0e419627672d91d032e8bbc7a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad48703fe4ba0dcc155c52e5aec217357"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_tcp_server.html#ad48703fe4ba0dcc155c52e5aec217357">AsyncConnect</a> (<a class="el" href="class_c_socket.html">CSocket</a> &amp;sock, const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;func, void *invoker=<a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a>)</td></tr>
<tr class="memdesc:ad48703fe4ba0dcc155c52e5aec217357"><td class="mdescLeft">&#160;</td><td class="mdescRight">投递一个连接请求  <a href="class_c_tcp_server.html#ad48703fe4ba0dcc155c52e5aec217357">更多...</a><br /></td></tr>
<tr class="separator:ad48703fe4ba0dcc155c52e5aec217357"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:a70410ac1328bfe500ecd731a544a52b8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_c_io_port_service.html">CIoPortService</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_tcp_server.html#a70410ac1328bfe500ecd731a544a52b8">_service</a></td></tr>
<tr class="separator:a70410ac1328bfe500ecd731a544a52b8"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock">
<p class="definition">在文件 <a class="el" href="_tcp_server_8h_source.html">TcpServer.h</a> 第 <a class="el" href="_tcp_server_8h_source.html#l00019">19</a> 行定义.</p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="ac9556021226f32f5448c1d366855803e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac9556021226f32f5448c1d366855803e">&#9670;&nbsp;</a></span>CTcpServer()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#a201ce692c9dca6599e5c12d00167419b">DEF_BEG_LIBTOOLS</a> CTcpServer::CTcpServer </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>isWriteLog</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_tcp_server_8cpp_source.html">TcpServer.cpp</a> 第 <a class="el" href="_tcp_server_8cpp_source.html#l00015">15</a> 行定义.</p>

</div>
</div>
<a id="ae1deac95dca41945acf249aeffa77e8c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae1deac95dca41945acf249aeffa77e8c">&#9670;&nbsp;</a></span>~CTcpServer()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">CTcpServer::~CTcpServer </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_tcp_server_8cpp_source.html">TcpServer.cpp</a> 第 <a class="el" href="_tcp_server_8cpp_source.html#l00026">26</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="a215a3edd8190f5ed24b788a547958d87"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a215a3edd8190f5ed24b788a547958d87">&#9670;&nbsp;</a></span>AsyncAccept()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CTcpServer::AsyncAccept </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_socket.html">CSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>svrSock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_c_socket.html">CSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>cliSock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em> = <code><a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>投递一个接收连接请求 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">svrSock</td><td>受监听的套接字 </td></tr>
    <tr><td class="paramname">cliSock</td><td>待接收的套接字类 </td></tr>
    <tr><td class="paramname">func</td><td>完成回调函数 </td></tr>
    <tr><td class="paramname">invoker</td><td>上层传递的数据 </td></tr>
  </table>
  </dd>
</dl>

<p>实现了 <a class="el" href="class_c_tcp_base.html#aeabda3ccd2c1b5470a7093b73a8b5cf7">CTcpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_tcp_server_8cpp_source.html">TcpServer.cpp</a> 第 <a class="el" href="_tcp_server_8cpp_source.html#l00046">46</a> 行定义.</p>

</div>
</div>
<a id="ad48703fe4ba0dcc155c52e5aec217357"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad48703fe4ba0dcc155c52e5aec217357">&#9670;&nbsp;</a></span>AsyncConnect()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void CTcpServer::AsyncConnect </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_socket.html">CSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em> = <code><a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">private</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>投递一个连接请求 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sock</td><td>待连接的套接字 </td></tr>
    <tr><td class="paramname">func</td><td>完成回调函数 </td></tr>
    <tr><td class="paramname">invoker</td><td>上层用户数据 </td></tr>
  </table>
  </dd>
</dl>

<p>实现了 <a class="el" href="class_c_tcp_base.html#a1c63ad47422ad52479f1029012bd5725">CTcpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_tcp_server_8h_source.html">TcpServer.h</a> 第 <a class="el" href="_tcp_server_8h_source.html#l00022">22</a> 行定义.</p>

</div>
</div>
<a id="a0783f660e11a3da11d15461f5917a125"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0783f660e11a3da11d15461f5917a125">&#9670;&nbsp;</a></span>AsyncRead()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CTcpServer::AsyncRead </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_socket.html">CSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;&#160;</td>
          <td class="paramname"><em>buff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em> = <code><a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>投递一个接收请求 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sock</td><td>已连接的套接字类 </td></tr>
    <tr><td class="paramname">buff</td><td>接收缓冲 </td></tr>
    <tr><td class="paramname">func</td><td>完成函数指针 </td></tr>
    <tr><td class="paramname">invoker</td><td>上层用户传入的数据指针 </td></tr>
  </table>
  </dd>
</dl>

<p>实现了 <a class="el" href="class_c_tcp_base.html#ab410b1e94590eb2323e7e1b919628934">CTcpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_tcp_server_8cpp_source.html">TcpServer.cpp</a> 第 <a class="el" href="_tcp_server_8cpp_source.html#l00059">59</a> 行定义.</p>

</div>
</div>
<a id="a253d11319caeab1b90d4b2514671d963"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a253d11319caeab1b90d4b2514671d963">&#9670;&nbsp;</a></span>AsyncSend()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CTcpServer::AsyncSend </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_socket.html">CSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;&#160;</td>
          <td class="paramname"><em>buff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em> = <code><a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>投递一个写请求 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sock</td><td>已连接的套接字类 </td></tr>
    <tr><td class="paramname">buff</td><td>发送缓冲 </td></tr>
    <tr><td class="paramname">func</td><td>完成函数 </td></tr>
    <tr><td class="paramname">invoker</td><td>上层用户传入的数据指针 </td></tr>
  </table>
  </dd>
</dl>

<p>实现了 <a class="el" href="class_c_tcp_base.html#afb0e5573766b4afb4d72421357f652ac">CTcpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_tcp_server_8cpp_source.html">TcpServer.cpp</a> 第 <a class="el" href="_tcp_server_8cpp_source.html#l00073">73</a> 行定义.</p>

</div>
</div>
<a id="ac7a0eb0e419627672d91d032e8bbc7a3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac7a0eb0e419627672d91d032e8bbc7a3">&#9670;&nbsp;</a></span>delete_class_copy_operator()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">CTcpServer::delete_class_copy_operator </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_tcp_server.html">CTcpServer</a>&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="a3d9e530435ed02902e0ffc49ee911d23"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d9e530435ed02902e0ffc49ee911d23">&#9670;&nbsp;</a></span>DelTimer()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CTcpServer::DelTimer </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_timer_base.html">CTimerBase</a> &amp;&#160;</td>
          <td class="paramname"><em>timer</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实现了 <a class="el" href="class_c_tcp_base.html#a1bf84f93a8e116fb10e52c5964def747">CTcpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_tcp_server_8cpp_source.html">TcpServer.cpp</a> 第 <a class="el" href="_tcp_server_8cpp_source.html#l00127">127</a> 行定义.</p>

</div>
</div>
<a id="a43511d2bc36455ebe70267794d8f05a1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a43511d2bc36455ebe70267794d8f05a1">&#9670;&nbsp;</a></span>GetIoPortService()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_io_port_service.html">CIoPortService</a> * CTcpServer::GetIoPortService </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取底层服务类 </p>

<p>实现了 <a class="el" href="class_c_tcp_base.html#aeb2e16b0d02441ed501f91cf7343a425">CTcpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_tcp_server_8cpp_source.html">TcpServer.cpp</a> 第 <a class="el" href="_tcp_server_8cpp_source.html#l00031">31</a> 行定义.</p>

</div>
</div>
<a id="a91a5d49009e5996ab2193e53339f4c61"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a91a5d49009e5996ab2193e53339f4c61">&#9670;&nbsp;</a></span>Init()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_sock_error.html">CSockError</a> CTcpServer::Init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_socket.html">CSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>isServer</em> = <code>false</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>将sock与tcp绑定，一个socket只能绑定一个tcp服务类 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sock</td><td>待绑定的套接字类 </td></tr>
    <tr><td class="paramname">isServer</td><td>初始化类型 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回SUCC，失败返回相应的错误码 </dd></dl>
<dl class="section remark"><dt>备注</dt><dd>如果isServer为true，则该函数将一个受监听的套接字与服务类进行绑定； 如果为false则绑定一个accept返回的套接字 </dd></dl>

<p>实现了 <a class="el" href="class_c_tcp_base.html#a01055364ad09fc55a53ec122275c318e">CTcpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_tcp_server_8cpp_source.html">TcpServer.cpp</a> 第 <a class="el" href="_tcp_server_8cpp_source.html#l00036">36</a> 行定义.</p>

</div>
</div>
<a id="aabed27cc347f3b9278aed6b89b1b1583"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aabed27cc347f3b9278aed6b89b1b1583">&#9670;&nbsp;</a></span>IoCompleteFunc()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> CTcpServer::IoCompleteFunc </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_o_v_e_r_l_a_p_p_e_d___e_x.html">OVERLAPPED_EX</a> *&#160;</td>
          <td class="paramname"><em>oved</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_tcp_server_8cpp_source.html">TcpServer.cpp</a> 第 <a class="el" href="_tcp_server_8cpp_source.html#l00142">142</a> 行定义.</p>

</div>
</div>
<a id="a34e5408e88e0161b6a08807266302ce9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a34e5408e88e0161b6a08807266302ce9">&#9670;&nbsp;</a></span>IsStop()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool CTcpServer::IsStop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>服务是否停止 </p>
<dl class="section return"><dt>返回</dt><dd>停止服务返回true,未停止返回false </dd></dl>

<p>实现了 <a class="el" href="class_c_tcp_base.html#aa92560f70e6bf99579567d339e57ebbf">CTcpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_tcp_server_8cpp_source.html">TcpServer.cpp</a> 第 <a class="el" href="_tcp_server_8cpp_source.html#l00116">116</a> 行定义.</p>

</div>
</div>
<a id="ae943fc8a2eb1bc116a4bfa714ce88e53"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae943fc8a2eb1bc116a4bfa714ce88e53">&#9670;&nbsp;</a></span>NotifyStop()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CTcpServer::NotifyStop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>通知服务停止 </p>

<p>实现了 <a class="el" href="class_c_tcp_base.html#aa10ef26a7837f0f80bfb5ce7dad8a7dc">CTcpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_tcp_server_8cpp_source.html">TcpServer.cpp</a> 第 <a class="el" href="_tcp_server_8cpp_source.html#l00111">111</a> 行定义.</p>

</div>
</div>
<a id="a7aec7b948d696161ec212911cf9d09a8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7aec7b948d696161ec212911cf9d09a8">&#9670;&nbsp;</a></span>Post()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CTcpServer::Post </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em> = <code><a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>投递一个中断请求 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">func</td><td>完成回调函数 </td></tr>
    <tr><td class="paramname">invoker</td><td>上层用户传入的数据指针 </td></tr>
  </table>
  </dd>
</dl>

<p>实现了 <a class="el" href="class_c_tcp_base.html#ae28f93db7e5e87542c5f86f5c495d022">CTcpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_tcp_server_8cpp_source.html">TcpServer.cpp</a> 第 <a class="el" href="_tcp_server_8cpp_source.html#l00087">87</a> 行定义.</p>

</div>
</div>
<a id="af863728c772ad57a28eda8b73e5a7313"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af863728c772ad57a28eda8b73e5a7313">&#9670;&nbsp;</a></span>Run()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool CTcpServer::Run </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>运行服务 </p>
<dl class="section return"><dt>返回</dt><dd>成功返回true,失败返回false </dd></dl>

<p>实现了 <a class="el" href="class_c_tcp_base.html#a3c7f720161a1dcdb80d4bb8813b62ef9">CTcpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_tcp_server_8cpp_source.html">TcpServer.cpp</a> 第 <a class="el" href="_tcp_server_8cpp_source.html#l00101">101</a> 行定义.</p>

</div>
</div>
<a id="af28974b451b2af615c6ba3882b2b35c7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af28974b451b2af615c6ba3882b2b35c7">&#9670;&nbsp;</a></span>Run_One()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool CTcpServer::Run_One </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>运行一次服务 </p>
<dl class="section return"><dt>返回</dt><dd>成功返回true，失败返回false </dd></dl>

<p>实现了 <a class="el" href="class_c_tcp_base.html#ad0f90a50ba640eb835eeb5fa4cc33070">CTcpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_tcp_server_8cpp_source.html">TcpServer.cpp</a> 第 <a class="el" href="_tcp_server_8cpp_source.html#l00106">106</a> 行定义.</p>

</div>
</div>
<a id="a6656ac1f6545de42e7d26d86c02f117f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6656ac1f6545de42e7d26d86c02f117f">&#9670;&nbsp;</a></span>SetTimer()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CTcpServer::SetTimer </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_timer_base.html">CTimerBase</a> &amp;&#160;</td>
          <td class="paramname"><em>timer</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实现了 <a class="el" href="class_c_tcp_base.html#a0327d3f24e578a54413fa6749e735a97">CTcpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_tcp_server_8cpp_source.html">TcpServer.cpp</a> 第 <a class="el" href="_tcp_server_8cpp_source.html#l00132">132</a> 行定义.</p>

</div>
</div>
<a id="a1e9571f43f1e91576211b2dd0e4737c9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1e9571f43f1e91576211b2dd0e4737c9">&#9670;&nbsp;</a></span>UpdateTimer()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool CTcpServer::UpdateTimer </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_timer_base.html">CTimerBase</a> &amp;&#160;</td>
          <td class="paramname"><em>timer</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实现了 <a class="el" href="class_c_tcp_base.html#a6b036e6967191efe0f329b07ca8207e3">CTcpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_tcp_server_8cpp_source.html">TcpServer.cpp</a> 第 <a class="el" href="_tcp_server_8cpp_source.html#l00137">137</a> 行定义.</p>

</div>
</div>
<a id="a5e63118cf3e1b653812c6a0b26db979a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5e63118cf3e1b653812c6a0b26db979a">&#9670;&nbsp;</a></span>WaitServerStop()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CTcpServer::WaitServerStop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>通知服务停止并等待 </p>

<p>实现了 <a class="el" href="class_c_tcp_base.html#a2a83474a64a6998f0fed855b70f9cf6b">CTcpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_tcp_server_8cpp_source.html">TcpServer.cpp</a> 第 <a class="el" href="_tcp_server_8cpp_source.html#l00121">121</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="a70410ac1328bfe500ecd731a544a52b8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a70410ac1328bfe500ecd731a544a52b8">&#9670;&nbsp;</a></span>_service</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt;<a class="el" href="class_c_io_port_service.html">CIoPortService</a>&gt; CTcpServer::_service</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_tcp_server_8h_source.html">TcpServer.h</a> 第 <a class="el" href="_tcp_server_8h_source.html#l00104">104</a> 行定义.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>H:/project/LibTools/src/socket/internal/<a class="el" href="_tcp_server_8h_source.html">TcpServer.h</a></li>
<li>H:/project/LibTools/src/socket/internal/<a class="el" href="_tcp_server_8cpp_source.html">TcpServer.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
